package com.huzz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huzz.entity.SysDictItem;
import com.huzz.vo.SysDictItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 系统字典Item-业务数据实体映射
*
* @author 童年的纸飞机
* @since 2023-06-07 13:27
*/
@Mapper
public interface SysDictItemMapper extends BaseMapper<SysDictItem> {

    /**
    * VO分页查询
    * @param page
    * @param wrapper
    * @return
    */
    IPage<SysDictItemVO> selectSysDictItemVOList(Page<SysDictItem> page, @Param(Constants.WRAPPER) QueryWrapper<SysDictItem> wrapper);

    /**
    * VO查询(一般用于导出)
    * @param wrapper
    * @return
    */
    List<SysDictItemVO> selectSysDictItemVOList(@Param(Constants.WRAPPER) QueryWrapper<SysDictItem> wrapper);

}